<?php
/**
 * @package     JBDump test
 * @version     1.2.0
 * @author      admin@joomla-book.ru
 * @link        http://joomla-book.ru/
 * @copyright   Copyright (c) 2009-2011 Joomla-book.ru
 * @license     GNU General Public License version 2 or later; see LICENSE
 * 
 */

 
include './included_file.php';

JBDump::showErrors(1);

?><h3>Code</h3><?php
JBDump(file_get_contents(__FILE__), 0, '-= Code =-::source');
?><h3>Result</h3><?php

echo "JBDump::memory();";
JBDump::memory();

echo 'JBDump::i()->mark(\'start loop\');';
JBDump::i()->mark('start loop');

    $bigArray = array();
    for ($i=0; $i < 10000; $i++) { 
        $bigArray[$i] = $i+@$bigArray[$i-1];
    }

echo 'JBDump::i()->mark(\'finish loop\');';
JBDump::i()->mark('finish loop');

    echo "JBDump::microtime();";
    JBDump::microtime();

    echo "JBDump::memory();";
    JBDump::memory();

    echo "JBDump::microtime();";
    JBDump::microtime();

echo 'JBDump::i()->mark(\'other functions\');';
JBDump::i()->mark('other functions');
